#ifndef __MSG_PACKAGING_H__
#define __MSG_PACKAGING_H__

#include "bsp_4g_common.h"

#define BATTERY_LIMIT_H 4100
#define BATTERY_LIMIT_L 3000
#define CONVERT_BATTERY_LEVEL(x) (int)(((float)(x - BATTERY_LIMIT_L) / (BATTERY_LIMIT_H - BATTERY_LIMIT_L)) * 100.0f)

// int get_devinfo_Hander(char* buff);
// int get_devinfo_Event(char* buff, char sta);
// int get_devinfo_SN(char* buff);
// int get_devinfo_Location(char* buff, float lat, float lng);
// int get_devinfo_Battery_CSQ_VER(char* buff, int bat, int csq);
// int get_devinfo_ICCID_IMEI(char* buff,char* iccid, char* imei) ;

int get_devinfo_SN(char *buff, int offset);

int get_AllMSG_length(char *buff, int sta, uart_4G_para *para);

#endif
